package com.bangdream.michelia.model;


import com.bangdream.michelia.contract.AdContract;
import com.bangdream.michelia.tool.retrofithttp.RetroFactory;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;

/**
 * Created by Mr.Wang on 2018/3/30.
 * 909732184@qq.com
 */

public class IAdModelImpl extends BaseModel implements AdContract.IAdModel{
    @Override
    public Observable getAdData(String url) {
        Map<String,String> map = new HashMap<>();
        return RetroFactory.getInstance().FormLoad(map);
    }

    @Override
    public Observable downloadFile(String url) {
        return RetroFactory.getInstance().downloadFile(url);
    }

    @Override
    public Observable getAdMessage() {
        Map<String,String> map = new HashMap<>();
        return RetroFactory.getInstance().getAdMessage(map);
    }
}
